import Cookies from 'js-cookie'

const userToken = 'userToken'

export function getToken(): string | undefined {
  return Cookies.get(userToken);
}

export function setToken(token: string): string | undefined {
  return Cookies.set(userToken, token, { sameSite: 'Strict' });
}

export function removeToken(): void {
  return Cookies.remove(userToken);
}